package com.art8173;

public class Account {
    private String cardID;
    private String userName;
    private char sex;
    private String password;
    private double money;
    private double limit;

//    public Account() {
//    }
//
//    public Account(int limit, double money, String password, char sex, String userName, String cardID) {
//        this.limit = limit;
//        this.money = money;
//        this.password = password;
//        this.sex = sex;
//        this.userName = userName;
//        this.cardID = cardID;
//    }

    public String getCardID() {
        return cardID;
    }

    public void setCardID(String cardID) {
        this.cardID = cardID;
    }

    public String getUserName() {
        return userName+(sex=='男'?"先生":"女士");
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getLimit() {
        return limit;
    }

    public void setLimit(double limit) {
        this.limit = limit;
    }
}
